<?php /* Smarty version 2.6.16, created on 2013-09-10 03:56:07
         compiled from ../templates/default//modules/myaccount/mymessages.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'base64_encode', '../templates/default//modules/myaccount/mymessages.tpl', 65, false),array('modifier', 'stripslashes', '../templates/default//modules/myaccount/mymessages.tpl', 65, false),array('modifier', 'strip', '../templates/default//modules/myaccount/mymessages.tpl', 65, false),array('modifier', 'truncate', '../templates/default//modules/myaccount/mymessages.tpl', 65, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_start'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_end'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '<link rel="stylesheet" type="text/css" href="';  echo $this->_tpl_vars['siteroot'];  echo '/templates/default/style/dashboard.css"><link rel="stylesheet" type="text/css" href="';  echo $this->_tpl_vars['siteroot'];  echo '/templates/default/style/jquery-ui-1.8.17.custom.css"><!--[if IE 7 ]>  <html class="ie7">   <![endif]--><script type="text/javascript" src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/jquery-1.7.1.min.js"></script><script type="text/javascript" src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/menu.js"></script><script type="text/javascript" src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/jquery-ui-1.8.17.custom.min.js"></script>'; ?>


<?php echo '
<script type="text/javascript">
$(document).ready(function(){
	//$("#tabs").tabs();
});
	
</script>
'; ?>



<section class="middle_portion">
	<section class="inner_head">Dashboard</section>
    <section class="inner_containstart">
    	<!-- dashboard Left Content Start -->
        	<!-- dashboard Left Content Start -->
        	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['cms_left_content'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
        <!-- dashboard Left Content End -->
        <!-- dashboard Right Content Start -->
        	<section class="dash_right">
            	<section class="title_box">
                    <h4>My Inbox Messages</h4>
                   <section class="clear"></section>
                </section>
              <?php if ($this->_tpl_vars['msg']):  echo $this->_tpl_vars['msg'];  endif; ?>
              <section class="tab_wrapp" id="tabs">
                            <section class="tab_nav" style="margin:0px!important;">
                                <ul>
                                   <!-- <li><a href="#inbox">Inbox</a></li>
                                    <li><a href="#sentitem">Sent Item</a></li>
                                    <li><a href="#message_reply">Compose</a></li>-->
                                     <li><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/myaccount/mymessages/" class="active">Inbox</a></li>
                                    <li><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/myaccount/mysentmessages/" >Sent Item</a></li>
                                    <li><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/myaccount/message_reply/">Compose</a></li>
                                    <section class="clear"></section>
                                </ul>
                            </section>
                            <section class="tab_des_wrapp" id="inbox">
                           		<section class="inbox_wrapp">
                                <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['msgArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
                                	<dl>
                                    	<section class="white_box">
                                        	<section class="img_box">
                                            <?php if ($this->_tpl_vars['msgArray'][$this->_sections['i']['index']]['image'] != ''): ?>
                                            	<img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/includes/image.php?width=58&amp;height=58&amp;image=<?php echo $this->_tpl_vars['siteroot']; ?>
/uploads/user/<?php echo $this->_tpl_vars['msgArray'][$this->_sections['i']['index']]['image']; ?>
" />
                                            <?php else: ?> 
                                            	<img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/upload/featredtrade_img3.jpg" width="58" height="58" title="User Name" alt="User Name" />   
                                            <?php endif; ?>  
                                            
                                            </section>
                                            <section class="inbox_txt_box">
                                            	<section class="msg_title"><a href="javascript:;" style=" cursor:default;" ><?php echo $this->_tpl_vars['msgArray'][$this->_sections['i']['index']]['sender_name']; ?>
</a> <?php echo $this->_tpl_vars['msgArray'][$this->_sections['i']['index']]['ago']; ?>
 </section>
                                                <article><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/myaccount/<?php echo ((is_array($_tmp=$this->_tpl_vars['msgArray'][$this->_sections['i']['index']]['id'])) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
/<?php echo $this->_tpl_vars['page']; ?>
/inbox/message_view/" style="color:#000;"><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['msgArray'][$this->_sections['i']['index']]['subject'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)))) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp)))) ? $this->_run_mod_handler('truncate', true, $_tmp, 110, "...") : smarty_modifier_truncate($_tmp, 110, "...")); ?>
</a></article>
                                            </section>
                                            <section class="replay_box">
                                            	<section class="close"><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/myaccount/<?php echo ((is_array($_tmp=$this->_tpl_vars['msgArray'][$this->_sections['i']['index']]['id'])) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
/<?php echo $this->_tpl_vars['page']; ?>
/inbox/delete_message/" onclick="javascript:return confirm('Are you sure do you want to delete this message?');" title="Delete Message">X</a></section>
                                                <a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/myaccount/<?php echo ((is_array($_tmp=$this->_tpl_vars['msgArray'][$this->_sections['i']['index']]['id'])) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
/message_reply/">Reply</a>
                                            </section>
                                         <section class="clear"></section>
                                        </section>   <section class="clear"></section>
                                    </dl>
								  <?php endfor; else: ?>
				                    	<div class="error" style="padding:10px;text-align:center;">Oops, Sorry there are no messages.</div>
                                  <?php endif; ?>
                                    
                                    <?php if ($this->_tpl_vars['pagenation']): ?>
                                        <section class="pagna" style="padding-top:0px; margin-top:5px !important;">
                                        <?php echo $this->_tpl_vars['pagenation']; ?>

                                        </section>
                                    <?php endif; ?>
                                    <section class="clear"></section>
                                </section> </section>
                                
                               <!-- <section class="tab_des_wrapp sentitem" id="sentitem">
                                  <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['msgArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
                                     <dl>
                                        <dt>
                                            <section class="date_box"><a href="javascript:;">To <?php echo $this->_tpl_vars['msgArray'][$this->_sections['i']['index']]['user_name']; ?>
</a> <?php echo $this->_tpl_vars['msgArray'][$this->_sections['i']['index']]['ago']; ?>
</section>
                                            
                                            <article><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/myaccount/<?php echo ((is_array($_tmp=$this->_tpl_vars['msgArray'][$this->_sections['i']['index']]['id'])) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
/<?php echo $this->_tpl_vars['page']; ?>
/sent/message_view/" style="color:#000;"><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['msgArray'][$this->_sections['i']['index']]['subject'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)))) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp)))) ? $this->_run_mod_handler('truncate', true, $_tmp, 110, "...") : smarty_modifier_truncate($_tmp, 110, "...")); ?>
</a></article>
                                        </dt>
                                        <dd><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/myaccount/<?php echo ((is_array($_tmp=$this->_tpl_vars['msgArray'][$this->_sections['i']['index']]['id'])) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
/<?php echo $this->_tpl_vars['page']; ?>
/sent/delete_message/" onclick="javascript:return confirm('Are you sure do you want to delete this message?');" title="Delete Sent Item">X</a></dd>
                                        <section class="clear"></section>
                                    </dl>
   								  <?php endfor; else: ?>
				                    	<div class="error" style="padding:10px;text-align:center;">Oops, Sorry there are no messages.</div>
                                  <?php endif; ?>
                                    
                                    <?php if ($this->_tpl_vars['pagenation']): ?>
                                        <section class="pagna" style="padding-top:20px;">
                                        <?php echo $this->_tpl_vars['pagenation']; ?>

                                        </section>
                                    <?php endif; ?>

                           </section>-->
                           
                         <!--  <section id="message_reply">
                           <form name="frmReply" id="frmReply" method="post" onsubmit="return validateMsg();">
                            <section class="tab_des_wrapp" id="compose">
                            	<section class="compose_box">
                           		<ul>
                            	<!--<li>
                                	<label>Select :</label>
                                    <select><option>Teacher</option></select>
                                 </li>
                                 <li>
                                	<label>From :</label>
                                   <input type="text" name="fromname" id="fromname" value="<?php echo $this->_tpl_vars['userDetArr']['first_name']; ?>
 <?php echo $this->_tpl_vars['userDetArr']['last_name']; ?>
" readonly="readonly">
                                 </li>
                                 <li>
                                	<label>To :</label>
                                   <input type="text" name="toname" id="toname" value="Administrator" readonly="readonly"><!--<?php echo $this->_tpl_vars['adminDetArr']['first_name']; ?>
 <?php echo $this->_tpl_vars['adminDetArr']['last_name']; ?>

                                 </li>
                                 <li>
                                	<label>Subject :</label>
                                    <input type="text" name="subject" id="subject" <?php if ($this->_tpl_vars['getmessagedetail']['subject'] != ''): ?> value="Reply: <?php echo $this->_tpl_vars['getmessagedetail']['subject']; ?>
" <?php endif; ?>>							     <section class="clear"></section>
                                     <div style="margin-left:230px;"  class="error" id="subdiv"></div>
                                 </li>
                                 <li>
                                	<label>Message :</label>
                                    <textarea name="message" id="message" style="margin-bottom:5px;overflow: auto;resize:none;"></textarea> 
                                     <section class="clear"></section>
                            
                                    <div  style="margin-left:230px; margin-bottom:10px;" class="error" id="msgdiv"></div>
                                    <section class="clear"></section>
                                    
                                 </li>
                            </ul>
                            </section>
                            <section class="bt_save_wrapp">
                            <input type="submit" name="submit" value="Send" class="bt_save">
                            <input type="button" value="Cancel" onclick="window.location='<?php echo $this->_tpl_vars['siteroot']; ?>
/myaccount/mymessages';" class="bt_save" >
                            </section>
                            
                           </section>
                            </form>
                            <section class="clear"></section>
                           </section>-->
                           
                           </section>
                           </section>
            </section>
        <!-- dashboard Right Content End -->
        	<section class="clear"></section>
    </section>
</section>


<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>